import request from '@/utils/request'
// 活动(赛事和资讯)
// 查询活动管理列表
export function listEvent(query) {
  return request({
    url: '/business/event/list',
    method: 'get',
    params: query
  })
}

// 查询活动管理详细
export function getEvent(id) {
  return request({
    url: '/business/event/' + id,
    method: 'get'
  })
}

// 新增活动管理
export function addEvent(data) {
  return request({
    url: '/business/event',
    method: 'post',
    data: data
  })
}

// 修改活动管理
export function updateEvent(data) {
  return request({
    url: '/business/event',
    method: 'put',
    data: data
  })
}

// 删除活动管理
export function delEvent(id) {
  return request({
    url: '/business/event/' + id,
    method: 'delete'
  })
}

// 报名记录
export function activitySignUpRecord(data) {
  return request({
    url: '/business/record/list',
    method: 'get',
    params: data,
  })
}



export function getOrderList(data) {
  return request({
    url: '/business/record/getOrderList',
    method: 'get',
    params: data,
  })
}
